<?php
session_start();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Schools Management System</title>
<meta http-equiv="Content-Language" content="English" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="../style.css" media="screen" />

</head>
<body>
<?php
if(isset($_POST['submit']))
{
	require_once 'csvread.php';
}
?>
<div id="wrap">

<div id="header"><table width="1239" border="0">
  <tr>
    <td width="866" height="119" rowspan="2"><h1 class="heaaderte"><font color="#996699" style="text-shadow:#969" size="+6">Schools Management System</font></h1></td>
    <td width="110" height="88">&nbsp;</td>
    <td width="161">&nbsp;</td>
    <td width="84">&nbsp;</td>
  </tr>
  <tr>
    <td height="21">&nbsp;</td>
    <td>
	<?Php
	//$First_Name=$_SESSION['First_Name'];
    //$_SESSION['Last_Name']=$Last_Name;
	  if(isset($_SESSION['First_Name']))
	  
{
      echo "Hi,". $_SESSION['First_Name']." ".$_SESSION['Last_Name'];
}
?></td>
    <td><a href="../Logout.php" class="logout">Logout</a></td>
  </tr>
  </table>
</div>

<div id="menu1_bg">
		<div id="menu1">
			
	
	
			<ul>
				<li><a href="../index.php"><font color="#CCCC66" style="text-shadow:#969" size="+1">Home</font></a></li>
				<li><a href="Schools.php" class="active"><font color="#CCCC66" style="text-shadow:#969" size="+1">Schools</font></a></li>
				<li><a href="../Teachers/teachers.php"><font color="#CCCC66" style="text-shadow:#969" size="+1">Teachers</font></a></li>
				<li><a href="../Lab/Labs.php"><font color="#CCCC66" style="text-shadow:#969" size="+1">Labs</font></a></li>
				<li><a href="../Resources/Resources.php"><font color="#CCCC66" style="text-shadow:#969" size="+1">Resources</font></a></li>
                <li><a href="#"><font color="#CCCC66" style="text-shadow:#969" size="+1">Resource Team</font></a></li>
                         <li><a href="../Programmes/Programmes.php"><font color="#CCCC66" style="text-shadow:#969" size="+1">Programmes</font></a></li>
                                  <li><a href="../Competition/Competition.php"><font color="#CCCC66" style="text-shadow:#969" size="+1">Competitions</font></a></li>
                 <li></li>
			</ul>
	</div>
  </div>
<div class="left">
  
<div class="articles">
<br/>
  <table width="776" height="204" border="0">
    <tr>
      <td width="62" rowspan="5">&nbsp;</td>
      <td height="18" colspan="3" bgcolor="#F1A3DE">&nbsp;</td>
      <td width="10" rowspan="5" bgcolor="#996699">&nbsp;</td>
      <td width="399" bgcolor="#996699">
      <?php
      if(isset($_POST['submit']))
{
	if(isset($_SESSION['errorse']))
	{
		echo ($_SESSION['errorse']);
		unset($_SESSION['errorse']);
	}
	if(isset($_SESSION['errordb']))
	{
		echo ($_SESSION['errordb']);
		unset($_SESSION['errordb']);
		
	}
	if(isset($_SESSION['error']))
	{
		echo ($_SESSION['error']);
		unset($_SESSION['error']);
		
	}
	
	if(isset($_SESSION['errorex']))
	{
		echo ($_SESSION['errorex']);
		unset($_SESSION['errorex']);
		
	}
	if(isset($_SESSION['errorst']))
	{
		echo ($_SESSION['errorst']);
		unset($_SESSION['errorst']);
		
	}
	if(isset($_SESSION['e1']))
	{
		echo ($_SESSION['e1']);
		unset($_SESSION['e1']);
		
	}
	if(isset($_SESSION['e2']))
	{
		echo ($_SESSION['e2']);
		unset($_SESSION['e2']);
		
	}
	if(isset($_SESSION['e3']))
	{
		echo ($_SESSION['e3']);
		unset($_SESSION['e3']);
		
	}
	if(isset($_SESSION['e4']))
	{
		echo ($_SESSION['e4']);
		unset($_SESSION['e4']);
		
	}
	if(isset($_SESSION['errorst']))
	{
		echo ($_SESSION['errorst']);
		unset($_SESSION['errorat']);
		
	}
	}
		?></td>
    </tr>
    <tr>
      <td width="23" rowspan="3" bgcolor="#F1A3DE">&nbsp;</td>
      <td width="238" height="52" bgcolor="#333366"><img src="../images/AlienDa0.gif"/></td>
      <td width="18" rowspan="3" bgcolor="#F1A3DE">&nbsp;</td>
      <td width="399" rowspan="4" bgcolor="#996699"><form action="#" method="post"
enctype="multipart/form-data">
        <label for="file"><font color="#000033" size="+1">Filename:</font></label>
        <input type="file" name="file" id="file" />
        <br />
        <br />
        <input type="submit" name="submit" value="Submit"/>
      </form></td>
      </tr>
    <tr>
      <td height="52" bgcolor="#333366"><img src="../images/AlienDa0.gif" alt=""/></td>
      </tr>
    <tr>
      <td height="18" bgcolor="#333366"><img src="../images/AlienDa0.gif" alt=""/></td>
      </tr>
    <tr>
      <td height="18" colspan="3" bgcolor="#F1A3DE">&nbsp;</td>
      </tr>
  </table>
</div>
</div>

<div class="rightmenu"> 

<h1>Schools</h1>
      <br/>
  <table width="220" border="0">
    <tr>
      <td height="41"><a href="AddSch.php">Add New School</a></td>
    </tr>
    <tr>
      <td height="41"><a href="SearchSch.php">Search a School's data</a></td>
    </tr>
    <tr>
      <td height="41"><a href="UpdateSch.php">Update a School's data</a></td>
    </tr>
    <tr>
      <td height="41"><a href="DelSch.php">Delete a School</a></td>
    </tr>
    <tr>
      <td height="41"><a href="Viewall.php">View All</a></td>
    </tr>
  </table>
</div>
 
 <div style="clear: both;"> </div>


<div id="footer">
  <table width="1217" height="50" border="0">
  <tr>
    <td width="903" height="46">Schools Managemrnt System &copy; 2012 </td>
    <td width="50"><strong><a href="#" class="active">Home</a><a href="#"></a></strong>|</td>
    <td width="91"><strong><a href="#">Contact us</a></strong>|</td>
    <td width="27"><a href="http//www.facebook.com"><img src="../images/facebook1.png" width="38" height="38"/></a></td>
    <td width="26"><a href="http//twitter.com"><img src="../images/twitter.png" width="38" height="38"/></a></td>
    <td width="26"><a href="http//www.google.lk"><img src="../images/google.png" width="38" height="38"/></a></td>
    <td width="64"><a href=""http="http"//www.yahoo.com""><img src="../images/yahoo.png" width="38" height="38"/></a></td>
  </tr>
</table>
</div>
</div>

</body>
</html>